<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.10.0"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SARibbon: SAPrivateFramelessCursorPosCalculator类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<script type="text/javascript" src="clipboard.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="cookie.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="SA-logo.png"/></td>
  <td id="projectalign">
   <div id="projectname">SARibbon<span id="projectnumber">&#160;2.4.2</span>
   </div>
   <div id="projectbrief">SARibbon wiki</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.10.0 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function(){initNavTree('class_s_a_private_frameless_cursor_pos_calculator.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="#pub-static-attribs">静态 Public 属性</a> &#124;
<a href="class_s_a_private_frameless_cursor_pos_calculator-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">SAPrivateFramelessCursorPosCalculator类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>计算鼠标是否位于左、上、右、下、左上角、左下角、右上角、右下角。  
 <a href="#details">更多...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab311a2b767d4ad8485bd2c429dd3e928" id="r_ab311a2b767d4ad8485bd2c429dd3e928"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#ab311a2b767d4ad8485bd2c429dd3e928">reset</a> ()</td></tr>
<tr class="memdesc:ab311a2b767d4ad8485bd2c429dd3e928"><td class="mdescLeft">&#160;</td><td class="mdescRight">重置鼠标位置状态。  <br /></td></tr>
<tr class="separator:ab311a2b767d4ad8485bd2c429dd3e928"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69358aa0c14c6a6ff3e6f638f54a8f2b" id="r_a69358aa0c14c6a6ff3e6f638f54a8f2b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="#a69358aa0c14c6a6ff3e6f638f54a8f2b">recalculate</a> (const QPoint &amp;globalMousePos, const QRect &amp;frameRect)</td></tr>
<tr class="memdesc:a69358aa0c14c6a6ff3e6f638f54a8f2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据全局鼠标位置和窗口矩形重新计算鼠标位置状态。  <br /></td></tr>
<tr class="separator:a69358aa0c14c6a6ff3e6f638f54a8f2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a8f0fc650945d0f81fc938b1d41e73b58" id="r_a8f0fc650945d0f81fc938b1d41e73b58"><td class="memItemLeft" align="right" valign="top"><a id="a8f0fc650945d0f81fc938b1d41e73b58" name="a8f0fc650945d0f81fc938b1d41e73b58"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsOnEdges</b> { true }</td></tr>
<tr class="separator:a8f0fc650945d0f81fc938b1d41e73b58"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf54f4231cae230cd1b78bbc67394e3d" id="r_adf54f4231cae230cd1b78bbc67394e3d"><td class="memItemLeft" align="right" valign="top"><a id="adf54f4231cae230cd1b78bbc67394e3d" name="adf54f4231cae230cd1b78bbc67394e3d"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsOnLeftEdge</b> { true }</td></tr>
<tr class="separator:adf54f4231cae230cd1b78bbc67394e3d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a615677ee9c31cedef1682bd32a14ba1c" id="r_a615677ee9c31cedef1682bd32a14ba1c"><td class="memItemLeft" align="right" valign="top"><a id="a615677ee9c31cedef1682bd32a14ba1c" name="a615677ee9c31cedef1682bd32a14ba1c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsOnRightEdge</b> { true }</td></tr>
<tr class="separator:a615677ee9c31cedef1682bd32a14ba1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3cf64a8884a560b8076456f364d8d34e" id="r_a3cf64a8884a560b8076456f364d8d34e"><td class="memItemLeft" align="right" valign="top"><a id="a3cf64a8884a560b8076456f364d8d34e" name="a3cf64a8884a560b8076456f364d8d34e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsOnTopEdge</b> { true }</td></tr>
<tr class="separator:a3cf64a8884a560b8076456f364d8d34e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a696549aba51a15cfbc73d95c1422a934" id="r_a696549aba51a15cfbc73d95c1422a934"><td class="memItemLeft" align="right" valign="top"><a id="a696549aba51a15cfbc73d95c1422a934" name="a696549aba51a15cfbc73d95c1422a934"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsOnBottomEdge</b> { true }</td></tr>
<tr class="separator:a696549aba51a15cfbc73d95c1422a934"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a05673f76afa2a1a9b72cec5edb9b29de" id="r_a05673f76afa2a1a9b72cec5edb9b29de"><td class="memItemLeft" align="right" valign="top"><a id="a05673f76afa2a1a9b72cec5edb9b29de" name="a05673f76afa2a1a9b72cec5edb9b29de"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsOnTopLeftEdge</b> { true }</td></tr>
<tr class="separator:a05673f76afa2a1a9b72cec5edb9b29de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabf6fa4a83b41eac837a0032940ae8ac" id="r_aabf6fa4a83b41eac837a0032940ae8ac"><td class="memItemLeft" align="right" valign="top"><a id="aabf6fa4a83b41eac837a0032940ae8ac" name="aabf6fa4a83b41eac837a0032940ae8ac"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsOnBottomLeftEdge</b> { true }</td></tr>
<tr class="separator:aabf6fa4a83b41eac837a0032940ae8ac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72361d7d0df357548e4b5582f347ee7f" id="r_a72361d7d0df357548e4b5582f347ee7f"><td class="memItemLeft" align="right" valign="top"><a id="a72361d7d0df357548e4b5582f347ee7f" name="a72361d7d0df357548e4b5582f347ee7f"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsOnTopRightEdge</b> { true }</td></tr>
<tr class="separator:a72361d7d0df357548e4b5582f347ee7f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae942488c1a1ef70dcbf8cc0e98afdfcd" id="r_ae942488c1a1ef70dcbf8cc0e98afdfcd"><td class="memItemLeft" align="right" valign="top"><a id="ae942488c1a1ef70dcbf8cc0e98afdfcd" name="ae942488c1a1ef70dcbf8cc0e98afdfcd"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>mIsOnBottomRightEdge</b> { true }</td></tr>
<tr class="separator:ae942488c1a1ef70dcbf8cc0e98afdfcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-attribs" name="pub-static-attribs"></a>
静态 Public 属性</h2></td></tr>
<tr class="memitem:a70539e2963e62325a031337c4e6190be" id="r_a70539e2963e62325a031337c4e6190be"><td class="memItemLeft" align="right" valign="top"><a id="a70539e2963e62325a031337c4e6190be" name="a70539e2963e62325a031337c4e6190be"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><b>s_borderWidth</b> = 5</td></tr>
<tr class="separator:a70539e2963e62325a031337c4e6190be"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae74e2dc7ce95ebf22139d346baaa325d" id="r_ae74e2dc7ce95ebf22139d346baaa325d"><td class="memItemLeft" align="right" valign="top"><a id="ae74e2dc7ce95ebf22139d346baaa325d" name="ae74e2dc7ce95ebf22139d346baaa325d"></a>
static int&#160;</td><td class="memItemRight" valign="bottom"><b>s_titleHeight</b> = 30</td></tr>
<tr class="separator:ae74e2dc7ce95ebf22139d346baaa325d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>计算鼠标是否位于左、上、右、下、左上角、左下角、右上角、右下角。 </p>
<p>该类用于计算鼠标相对于窗口边框的位置，以便确定是否可以进行缩放操作。 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a69358aa0c14c6a6ff3e6f638f54a8f2b" name="a69358aa0c14c6a6ff3e6f638f54a8f2b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69358aa0c14c6a6ff3e6f638f54a8f2b">&#9670;&#160;</a></span>recalculate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAPrivateFramelessCursorPosCalculator::recalculate </td>
          <td>(</td>
          <td class="paramtype">const QPoint &amp;</td>          <td class="paramname"><span class="paramname"><em>gMousePos</em>, </span></td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const QRect &amp;</td>          <td class="paramname"><span class="paramname"><em>frameRect</em></span>&#160;)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据全局鼠标位置和窗口矩形重新计算鼠标位置状态。 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">globalMousePos</td><td>全局鼠标位置。 </td></tr>
    <tr><td class="paramname">frameRect</td><td>窗口的矩形区域。 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab311a2b767d4ad8485bd2c429dd3e928" name="ab311a2b767d4ad8485bd2c429dd3e928"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab311a2b767d4ad8485bd2c429dd3e928">&#9670;&#160;</a></span>reset()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SAPrivateFramelessCursorPosCalculator::reset </td>
          <td>(</td>
          <td class="paramname"><span class="paramname"></span></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>重置鼠标位置状态。 </p>
<p>将所有鼠标位置标志重置为false。 </p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>C:/src/Qt/SARibbon/src/SARibbonBar/<b>SAFramelessHelper.cpp</b></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="class_s_a_private_frameless_cursor_pos_calculator.html">SAPrivateFramelessCursorPosCalculator</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.10.0 </li>
  </ul>
</div>
</body>
</html>
